package com.bana.fvs.app.mvp.contract;

import android.app.Activity;

import com.bana.fvs.app.module.detaile.entity.UpdateWorkModeResultBean;
import com.bana.fvs.app.module.detaile.entity.WorkModeItemBean;
import com.bana.fvs.app.mvp.model.BaseModel;
import com.bana.fvs.app.mvp.presenter.BasePresenter;
import com.bana.fvs.app.mvp.view.IBaseView;
import com.wei.commonlibrary.net.OkhttpRequest;

import java.util.List;

/**
 * Created by wei on 2018/3/3.
 */

public interface WorkModeContract {
     abstract class AbsWorkModeModel extends BaseModel{
         /**
          * 获取雾灯工作模式列表
          * @param token
          * @return
          */
         public abstract OkhttpRequest getWorkMode(String token);

         /**
          * 修改雾灯工作模式
          * @param token
          * @param wqbh
          * @param gzms
          * @return
          */
         public abstract OkhttpRequest http_WorkModeUpdate(String token, String wqbh, String gzms);
         /**
          * 获取能见度检测仪工作模式列表
          * @param token
          * @return
          */
         public abstract OkhttpRequest getVisiblityWorkMode(String token);

         /**
          * 修改能见度检测仪工作模式
          * @param token
          * @param wqbh
          * @param gzms
          * @return
          */
         public abstract OkhttpRequest http_VisiblityWorkModeUpdate(String token, String wqbh, String gzms);
    }
    abstract class AbsWorkModePresenter extends BasePresenter<AbsWorkModeModel,IWrokModeView>{
        /**
         * 获取雾灯工作模式列表
         * @param token
         * @return
         */
        public abstract void getWorkMode(Activity activity,String token,int type);

        /**
         * 修改雾灯工作模式
         * @param token
         * @param wqbh
         * @param gzms
         * @return
         */
        public abstract void http_WorkModeUpdate(Activity activity,String token, String wqbh, String gzms,int type);

    }
    interface IWrokModeView extends IBaseView<String>{
         void getWorkMode(List<WorkModeItemBean> workMeItemBeanList);
         void updtaeWorkMode(UpdateWorkModeResultBean updateWorkModeResultBean);
    }
}
